<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/shezhi.css">
<link rel="stylesheet" href="css/xiaoxi.css">
<title>通 知</title>
</head>
<body>
	<!--头部 -->
	<%@include file="head.jsp"%>

	<div class="shezhi">
		<div class="shezhi_c">
			<div class="shezhi_c_top">
				<img src="imges/home.png"> > 通知 > 消息
			</div>
			<div class="shezhi_con" style="height: auto;">
				<table style="width: 100%; table-layout: fixed;" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<td style="border-right: 1px solid #f1f1f1; width: 200px">
								<%@include file="messageLeftNavi.jsp"%>
							</td>
							<td>
								<div class="shezhi_con_r" style="height: auto; padding-bottom: 10px">
									<div class="shezhi_con_rtop">
										<div class="shezhi_con_rtop1" style="width: 100%;">
											<ul style="margin-left: 30px;">
												<li>
													<a href="messageController.do?privateMessage" style="color: #666;">
														<span>私人消息</span>
													</a>
													<br>
												</li>
												<li>
													<a href="messageController.do?message&messageType=5" style="color: #666;">
														<span>公共消息</span>
													</a>
													<br> <img src="imges/message/jiantou.png">
												</li>
											</ul>
											<ul style="display: inline-block; float: right; margin-top: -5px;">
												<li style="width: 100px; height: 30px; line-height: 30px; background: #ff6600; color: #fff;">
													<a href="xiaoxi_fa.html" style="color: #fff;">发送消息</a>
												</li>
												<li style="width: 100px; height: 30px; line-height: 30px;">
													<a href="duanxx_sz.html" style="color: #666;">短消息的设置</a>
												</li>
											</ul>
										</div>
									</div>

									<div class="duanxx_fs">
										<div style="margin-left: 25px;">
											<input type="checkbox" style="vertical-align: middle">
											<span style="margin-left: 15px">全选</span> <span style="margin-left: 40px">删除</span> <span style="margin-left: 40px">清空所有消息</span>
											<div style="float: right; margin-right: 55px">发件人</div>
										</div>
									</div>

									<c:if test="${messageList.size()>=1}">
										<div class="duanxx_fs1">
											<table width="100%" border="0">
												<c:forEach items="${messageList}" var="messageList">
													<tr>
														<td style="width: 42px; text-align: right; padding-right: 15px;">
															<input type="checkbox" style="vertical-align: middle">
														</td>
														<td>${messageList.title}</td>
														<td style="width: 86px;">${messageList.create_name}</td>
													</tr>
												</c:forEach>
											</table>
										</div>
							<!-- 》》》》》》》》》》》》》》》》》 分页 《《《《《《《《《《《《《《《《《《《《《《《《《 -->
										<div class="hd_page" style="padding-bottom: 20px">
											<%
												int pageNo = 0, bfNo = 0;
													String pageNoStr = request.getParameter("page");
													if (StringUtil.isEmpty(pageNoStr) || "1".equals(pageNoStr)) {
														pageNo = 1;
														bfNo = 1;
													} else {
														pageNo = Integer.parseInt(pageNoStr);
														bfNo = pageNo - 1;
													}
													String annCount = request.getAttribute("pageCount").toString();
													int P_pageCount = Integer.parseInt(annCount);
											%>

											<span id="info" class="jifen4_page" style="width: 100px">共${pageCount }页|第<%=pageNo%>页
											</span>
											<a class="jifen4_page" style="width: 60px" href="messageController.do?message&messageType=5&page=1">首页</a>
											<a class="jifen4_page" style="width: 60px" href="messageController.do?message&messageType=5&page=<%=bfNo%>">上一页</a>
											<%
												int showPages = 6;//显示10页
													if (showPages >= P_pageCount) {
														for (int i = 0; i < P_pageCount; i++) {
											%>
											<a class="jifen4_page" href="messageController.do?message&messageType=5&page=<%=(i + 1)%>"><%=(i + 1)%></a>
											<%
												}
													} else {
														int pindex = 0;
														if (pageNo > (showPages / 2))
															pindex = pageNo - (showPages / 2);
														if ((pageNo > P_pageCount - (showPages / 2)) && (pageNo <= P_pageCount))
															pindex = P_pageCount - showPages;
														for (int i = pindex; i < showPages + pindex; i++) {
											%>
											<a class="jifen4_page" href="messageController.do?message&messageType=5&page==<%=(i + 1)%>"><%=(i + 1)%></a>
											<%
												}
													}
											%>
											<a class="jifen4_page" style="width: 60px" href="messageController.do?groupInfo&message&messageType=5&page=<%=(pageNo + 1)%>">下一页</a>
											<a class="jifen4_page" style="width: 60px" href="messageController.do?groupInfo&message&messageType=5&page=<%=P_pageCount%>">尾页</a>
										</div>
									</c:if>

									<c:if test="${messageList.size()<1}">
										<div style="width: 400px; margin: auto; padding-bottom: 200px; margin-top: 30px;">
											<img src="imges/message/xiaoxi.png">
										</div>
									</c:if>

								</div>
							</td>
						</tr>
					</tbody>
				</table>
				<div style="clear: both"></div>
			</div>
			<div style="clear: both"></div>
		</div>
	</div>

	<!--foot -->
	<%@include file="foot.jsp"%>

</body>
</html>